
import { http } from "../../utils/http.js"
function list(data){
	return http({
		url:"/api/leju/front/kind/list",
		data
	})
}

function productlist(data){
	return http({
		url:"/api/leju/front/product/list",
		data
	})
}

function productdetail(data){
	return http({
		url:"/api/leju/front/product/detail",
		data
	})
}
//添加到购物车
function addCart(data){
	return http({
		url:"/api/leju/front/cart/addCart",
		method:'post',
		data
	})
}

export default {
	list,
	productlist,
	productdetail,
	addCart
	}